package TestDemo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-06-09
 * Time: 15:32
 */
public class Bird extends Animal implements IRunning,IFiying{
    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "正在吃鸟食");
    }

    @Override
    public void fly() {
        System.out.println(name + "正在用翅膀飞翔");
    }

    @Override
    public void run() {
        System.out.println(name + "正在用鸟腿跑步");
    }
}
